import { Input } from "@nutui/nutui-react-taro";
import { View } from "@tarojs/components";
import { InputProps } from "@tarojs/components";
import React from "react";
import "./style.scss";

interface CombinationInputProps extends InputProps {
  afterText?: any;
}

export default function CombinationInput(props: CombinationInputProps) {
  const { afterText, type, ...args } = props;
  return (
    <View className="combination-input">
      <Input type={type} {...args} />
      <View>{afterText}</View>
    </View>
  );
}
